Canonicalizes a path which might be non-existent by going up the
ancestors until it finds a directory that exists, canonicalizes
that path, then adds back the remaining path components.
Normalize all intermediate components of the path (ie. remove “./” and “../” components).
Similar to fs::canonicalize()
but doesn’t resolve symlinks.
Gets the parent of this url.
Attempts to convert a url to a file path. By default, uses the Url
crate’s to_file_path()
method, but falls back to try and resolve unix-style
paths on Windows.